/*
 * SelectEvent.h
 *
 *  Created on: 2010-9-7
 *      Author: wenjian
 */

#ifndef DSELECTEVENT_H_
#define DSELECTEVENT_H_

#include <event/Event.h>

namespace Ed {

  class SelectEvent: public Thk::Event {
    public:
      SelectEvent(void* source=NULL);
      SelectEvent(bool selected, void* source=NULL);
      virtual ~SelectEvent();

      void setSelected(bool b){
        selected = b;
      }

      bool isSelected() const{
        return selected;
      }

      //定义事件类型
      static EventType Type;

    private:
      bool selected;

  };

}

#endif /* DSELECTEVENT_H_ */
